package com.un.ebs.order.task;

import com.un.ebs.order.domain.Order;
import com.un.ebs.order.service.OrderExpireService;
import com.un.ebs.order.service.OrderService;
import com.un.ebs.sys.base.QueueTaskService;
import com.un.ebs.sys.service.DelayedQueueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * <p>
 *
 * </p>
 *
 * @author liubo
 * @create 2021-03-29 16:45
 */
@Component
public class OrderTimeOutCheckConfig implements CommandLineRunner {

    @Autowired
    private DelayedQueueService delayedQueueService;

    @Autowired
    private OrderExpireService orderService;

    @Override
    public void run(String... args) throws Exception {
        //delayedQueueService.setQueue(Order.class, orderService.listener());
    }
}
